// 选中的月份为当前月，前推两个月；选中的月份不是当前月，前推一个月
let date = new Date()
let nowMonth = ('0' + (date.getMonth() + 1)).slice(-2)
let selectMonth = endTime.slice(5, 7)
let endTimeIn = ''
if (nowMonth === selectMonth) {
	if (selectMonth === '02') {
		endTimeIn = endTime.slice(0, 4) - 1 + '-12-31 23:59:59'
	} else if (selectMonth === '01') {
		endTimeIn = endTime.slice(0, 4) - 1 + '-11-30 23:59:59'
	} else {
		endTimeIn = endTime.slice(0, 4) + '-' + (selectMonth - 2) + '-28 23:59:59'
	}
} else {
	if (selectMonth === '01') {
		endTimeIn = endTime.slice(0, 4) - 1 + '-12-31 23:59:59'
	} else {
		endTimeIn = endTime.slice(0, 4) + '-' + (selectMonth - 1) + '-28 23:59:59'
	}
}